package org.example;


import java.util.ArrayList;

/**
 * @program: exper_code
 * @description:
 * @author: hlt
 * @create: 2023-10-21 15:13
 **/
public class Department {
    private ArrayList<Instructor> instructors;

    public Department(ArrayList<Instructor> instructors) throws Exception {
         if (instructors.isEmpty()){
             throw new Exception("一个系必须由一个或多个指导教师组成！");
         }

        this.instructors = instructors;
    }
}
